package com.violet.rabbitmq.entity;

import org.springframework.amqp.rabbit.connection.CorrelationData;

/**
 * 类说明:CorrelationData的自定义实现，用于拿到消息内容
 *
 * @author wqf
 * @date 2024/3/15 15:23
 */
public class CorrelationDataExt extends CorrelationData {
    /**
     * 数据
     */
    private volatile String data;
    /**
     * 交换机
     */
    private String exchange;
    /**
     * 路由键
     */
    private String routingKey;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }
}